package org.bigpigman.el.excel;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

import java.io.File;
import java.util.List;

/**
 * @Description excel导出
 * @Author 朱咸军
 * @Date 2019/12/27
 **/
public class ExcelExport {

    public static <T> void export(String path, ExcelTypeEnum excelType, List<T> dataList, Class<T> clazz) {
        File file = new File(path);
        Workbook wb;
        switch (excelType) {
            case HSSF:
                wb = new HSSFWorkbook();
                break;
            case XSSF:
                wb = new XSSFWorkbook();
                break;
        }

        

    }

}
